import request from '@/common/request';

// eslint-disable-next-line
export async function userLogin(data) {
  const result = await request({
    url: '/api/user/login',
    method: 'post',
    data,
  });

  return result;
}

export async function userInfo(data) {
  const result = await request({
    url: '/api/user/userInfo',
    method: 'get',
    data,
  });

  return result;
}
